<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
共
<c:out value="${page.totalCount}" />
条
<c:if test="${page.pageNum!=0}">&nbsp;
&nbsp;每页
<c:out value="${page.pageSize}" />
条&nbsp;共
<c:out value="${page.pageCount}" />
页&nbsp;当前第
<c:out value="${page.pageNum}" />
页&nbsp;
<a onclick="javascript:getIndex(1);"
	style="cursor: pointer; color: blue;">首页</a>&nbsp;
<c:if test="${page.pageNum>1}">
	<a onclick="javascript:getIndex('${page.pageNum-1}');"
		style="cursor: pointer; color: blue;">上一页</a>&nbsp;
</c:if>
<c:if test="${page.pageNum<page.pageCount}">
	<a onclick="javascript:getIndex('${page.pageNum+1}')"
		style="cursor: pointer; color: blue;">下一页</a>&nbsp;
</c:if>
<c:if test="${page.pageNum<page.pageCount}">
	<a onclick="javascript:getIndex('${page.pageCount}')"
		style="cursor: pointer; color: blue;">末页</a>&nbsp;
</c:if>
<c:if test="${page.totalCount!=0}">
	<a onclick="javascript:getIndex(0)"
		style="cursor: pointer; color: blue;">全部 </a>&nbsp;
</c:if>
<script type="text/javascript">
	function getIndex(pageNum){
		var pageSize = '${page.pageSize}';
		var url = document.mainForm.action;
		var param = $("#aid").val();
		imgUrl = '${ctx}/image/loading.gif';
		loadingFunc('loadingDiv', imgUrl);
		$.get(url+"?"+param,{'page.pageNum' : pageNum,'page.pageSize' : pageSize},function(result){
			$("#reportDiv").html(result);
			unloadingFunc('loadingDiv');
		});
	}
</script>
</c:if>